import Vue from 'vue'
import Router from 'vue-router'
import index from '@/view/index.vue'
import home from '@/view/home/home.vue'
import xinxiluru from '@/view/xinxiluru.vue'
import news from '@/view/news.vue'
import echo_s from '@/components/echo/echo_s'
import login_zc from '@/components/login/login_zc'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: index,
      children:[
        {
          path: '/',
          name: 'home',
          component: home,
          meta:{
            indexs:'0'
          }
        },
        {
          path: '/xinxiluru',
          name: 'xinxiluru',
          component: xinxiluru,
          meta:{
            indexs:'1'
          }
        },
        {
          path: '/news',
          name: 'news',
          component: news,
          meta:{
            indexs:'2'
          }
        },
        {
          path: '/login_zc',
          name: 'login_zc',
          component: login_zc,
          meta:{
            indexs:'0'
          }
        },
        {
          path: '/echo_s',
          name: 'echo_s',
          component: echo_s,
          meta:{
            indexs:'3'
          }
        }
      ]
    },
  ]
})
